import {Injectable} from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class Setting {
  public static APP: any = {
    name: 'pi-top-webide',
    description: 'pi-top-webide',
    copyright: '© pi-top 2019',
    logo: 'assets/img/logo.png',
    logoColor: 'assets/img/logo-color.png',
  };

  // storage keys
  public static storage: any = {
    language: 'language',
    accessToken: 'furtherToken',
    projectVersionId: 'projectVersionId',
    editorTabs: 'editorTabs',
    selectedEditorTabIndex: 'selectedEditorTabIndex',
    curActivedMenu: 'curActivedMenu',
    historyMenu: 'historyMenu',
    isRunning: 'isRunning', // is project running
    furtherMenu: 'furtherMenu', // furtherMenu
    deviceData: 'deviceData', // deviceData
  };
  public static projectVersionId: string;
  public static codeId: string; // codeId from further
  public static furtherFrontendUrl = 'https://further-test.pi-top.com'; // TODO modify it before publish
  public static furtherBackendUrl = 'https://backend-test.pi-top.com'; // TODO modify it before publish

  public static I18nData: any = {}; // some i18 data used in .ts, so we save i18 data to this object, and use it in .ts

  public static responseRetryTime = 1;  // retry times when request error

}
